/*---------------------------------------------------------
    ev_init.lua - Server Side Loader
	by Lead4u
---------------------------------------------------------*/
evorp = {};
evorp.players = {};
evorp.doors = {};
evorp.settings = {};
evorp.module = {};

include("evorp/core.lua")
include("evorp/ev_doors.lua")
include("evorp/ev_util.lua")
include("evorp/ev_classes.lua")
include("evorp/ev_weapons.lua")
include("evorp/ev_items.lua")
AddCSLuaFile("autorun/ev_cl_init.lua")
AddCSLuaFile("evorp/ev_cl_util.lua")
AddCSLuaFile("evorp/derma/ev_doors.lua")



/*---------------------------------------------------------
    Include / Add all Weapons/Items/Classes
---------------------------------------------------------*/

for k, v in pairs( file.FindInLua("weapons/*.lua") ) do
	include("weapons/" .. v);
	if (SERVER) then
		AddCSLuaFile("weapons/" .. v);
	end;
end;
for k, v in pairs( file.FindInLua("items/*.lua") ) do
	include("items/" .. v);
	if (SERVER) then
		AddCSLuaFile("items/" .. v);
	end;
end;
for k, v in pairs( file.FindInLua("classes/*.lua") ) do
	include("classes/" .. v);
	if (SERVER) then
		AddCSLuaFile("classes/" .. v);
	end;
end;
for k, v in pairs( file.FindInLua("modules/*.lua") ) do
	include("modules/" .. v);
	if (SERVER) then
		AddCSLuaFile("modules/" .. v);
	end;
	if (CLIENT) then
		include("modules/" .. v);
	end;
end;

/*---------------------------------------------------------
    end of file
---------------------------------------------------------*/